package depublicate;

import static org.junit.jupiter.api.Assertions.*;

import java.awt.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;

import org.junit.jupiter.api.Test;

import junit1.new1;

class textdepublicate {

	@Test
	void test() {
	Scanner scanner =new Scanner(System.in);
	String array=scanner.next();
	int[] a= Depublicate.getarray(array);
	System.out.println(Arrays.toString(a));
	ArrayList<Integer> b =Depublicate.TurnArrayintoArraylist(a);
	System.out.println(b);
	int[] c=Depublicate.TurnArrayListintoIntarray(b);
	System.out.println(Arrays.toString(c));
	}
	
	@Test
	void test1(){
		Scanner scanner =new Scanner(System.in);
		String array=scanner.next();
		int[] a= Usesettoundepublicate.getarray(array);
		Set<Integer> b=Usesettoundepublicate.TurnArrayintoArraylist(a);
		for (Integer integer : b) {
			System.out.println(b);
		}
		}
		
		@Test
		void test2() {
			HashSet<Integer> a =new HashSet<Integer>();
			a.add(31);
			a.add(32);
			a.add(33);
			Depublicate.IteratorText(a);
		}
		
		@Test
		void test3() {
			ArrayList<String> list = new ArrayList<String>();
			list.add("one");
			list.add(0, "two");
			for(Integer item : list) {
				System.out.println( item );
			}
			}
		}
